<template>
  <el-container class="restaurant_content">
    <el-aside width="100px">
      <st-menu></st-menu>
    </el-aside>
    <el-main class="restaurant_main">
      <keep-alive>
        <router-view v-if="$route.meta.keepAlive"></router-view>
      </keep-alive>
      <router-view v-if="!$route.meta.keepAlive"></router-view>
    </el-main>
  </el-container>
</template>

<script>
import stMenu from '@/components/menu'

export default {
  name: "index",
  components: {
    'stMenu': stMenu
  }
}
</script>

<style scoped lang="scss">
.restaurant_content {
  height: 100%;
  background-color: #ebebeb;
}
.restaurant_main{
  padding: 0 0 0 10px;
}
</style>